package com.skylin.mysell.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author quanlinlin on 2018/12/20 22:44.
 * @version 1.0
 */
@Getter
@AllArgsConstructor
public enum ResultEnum {
    CART_EMPTY(8, "购物车为空"),
    ORDER_DETAIL_EMPTY(6, "订单详情为空"),
    ORDER_DETAIL_NOT_EXIST(3, "订单详情不存在"),
    ORDER_NOT_EXIST(2, "订单不存在"),
    ORDER_OWNER_ERROR(11, "该订单不属于当前用户"),
    ORDER_PAY_STATUS_ERROR(7, "订单支付状态不正确"),
    ORDER_STATUS_ERROR(4, "订单状态不正确"),
    ORDER_UPDATE_ERROR(5, "订单更新失败"),
    PARAM_ERROR(10, "创建订单参数不正确"),
    PRODUCT_NOT_EXIST(0, "商品不存在"),
    PRODUCT_STOCK_ERROR(1, "库存不正确"),
    ;

    private Integer code;

    private String msg;
}
